<table>
		<tr>
			  <th>STT</th>
			  <th>Tiêu đề bài viết</th>
			  <th>Thể loại</th>
			  <th>Ngày đăng</th> 
			  <th>Tác giả</th> 
			  <th>Lượt xem</th>  
			  <th>Tình trạng</th>
			  <th>Thao tác</th>
		</tr>
		<?php
			$i = 1; 
			foreach($this->data as $item)
			{
				if($i%2!=1)
					echo "<tr class='alt'>";
				else
					echo "<tr>";
				echo '<td>'.$i.'</td>';
				echo "<td>".$item['name']."</td>";
				echo "<td>".Administrator_Model_ArticleCat_ArticleCat::getNamebyId($item['catergory'])."</td>";
				$date = new DateTime($item['created_date']);
				echo "<td>".$date->format('H:i:s d-m-Y')."</td>";
				echo "<td>".Administrator_Model_User_User::getNamebyId($item['user'])."</td>";
				echo "<td>".$item['hit']."</td>";
				if($item['status']=='1')
					echo "<td>Đã kích hoạt</td>";
				else
					echo "<td>Chưa kích hoạt</td>";
				echo '<td><a href="'.$this->baseUrl().'/administrator/article/edit/id/'.$item['id'].'"><img src="'.$this->baseUrl().'/public/templates/administrator/images/icons/edit.png"></a>|<a href="'.$this->baseUrl().'/administrator/article/delete/id/'.$item['id'].'"><img src="'.$this->baseUrl().'/public/templates/administrator/images/icons/delete.png"></a></td>';
				$i++;
					
			}
			?>
</table>
<div id="pagination">
	<?php
		$this->LoadPagination($this->count,$this->num,$this->page,$this->baseUrl().$this->url.'page/');
	?>
</div>